package io;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class PriftStreamTest {
    public static void main(String[] args) {
        PrintStream printStream=null;
        try {
             printStream = new PrintStream("d:/1.txt");
             printStream.write("14124124wo啊你我".getBytes(StandardCharsets.UTF_8));
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
          printStream.close();
        }
    }
}
